﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AuctionModel
{
    public class User
    {
        public int ID { get; set; }
        public Roles Role { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public string Department { get; set; }
        public int Ssn { get; set; }
        public string Address { get; set; }
        public short ZipCode { get; set; }
        public string City { get; set; }
        public int PhoneNo { get; set; }
        public string Email { get; set; }
        public double BidPoints { get; set; }

        public User(int id, Roles role, string password, string name, string department, int ssn, string address, short zipCode, string city, int phoneNo, string email, double bidPoints)
        {
            ID = id;
            Role = role;
            Password = password;
            Name = name;
            Department = department;
            Ssn = ssn;
            Address = address;
            ZipCode = zipCode;
            City = city;
            Email = email;
            PhoneNo = phoneNo;
            BidPoints = bidPoints;
        }

        public User()
        {
            
        }
    }

    public enum Roles
    {
        Admin, User,
    }
}
